package Stream;

import java.io.File;
import java.io.FileOutputStream;

public class fos {
    public static void main(String[] args) throws Exception{
        File file = new File("F:/test.txt");
        FileOutputStream fos = new FileOutputStream(file,true);
        byte[] data = "666666666".getBytes();
        fos.write(data);
        fos.close();
        System.out.println("写入成功!");
    }
}
